package com.juzipi.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class UserRole {

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Long roleId;

    private UserRole(){

    }

    private static class UserRoleInstance{
        private static final UserRole INSTANCE = new UserRole();
    }

    public static UserRole getInstance(){
        return UserRoleInstance.INSTANCE;
    }

}
